<?php
 include_once "../lib/DAL/DanhSachThi.php";
 
 class DanhSachThiBLL{
     function __construct(){
       
    }
    
    function __destruct(){
        
    }
    
    function setDanhSachThiBLL($row){
        $DanhSachThi = new DanhSachThi();
        $DanhSachThi->setDanhsachthi($row['ma_dsthi'],$row['ngaythi'] ,$row['ma_hoidongthi'] ,$row['ma_tochucthi']
                                        ,$row['madm_ca'] ,$row['ma_mon_ctdt'] ,$row['trangthai_dsthi']  );
        return $TcPhongThi;
    }
    
    public function insertDanhSachThi($DanhSachThi){
        $sql="INSERT INTO tbl_dsthi(
           ma_dsthi
          ,ngaythi
          ,ma_hoidongthi
          ,ma_tochucthi
          ,madm_ca
          ,ma_mon_ctdt
          ,trangthai_dsthi
            ) VALUES (
               '".$DanhSachThi->getma_dsthi()."'
              ,'".$DanhSachThi->getngaythi()."'
              ,'".$DanhSachThi->getma_hoidongthi()."'  
              ,'".$DanhSachThi->getma_tochucthi()."' 
              ,'".$DanhSachThi->getmadm_ca()."'
              ,'".$DanhSachThi->getma_mon_ctdt()."'  
              ,'".$DanhSachThi->gettrangthai_dsthi()."' 
            )";
    }
 }

?>